import request from "@/utils/requset"
// 获取商品列表的接口
export const getProListHandler = (data:{count:number,limitNum:number}) =>{
    return request({
        url:'/pro/list',
        data
    })
}
// 获取品牌列表
export const getCategoryHandler = () =>{
    return request({
        url:'/pro/getCategory' 
    })
}
// 筛选商品
export const getProSearchHandler = (data:{category?:string,search?:string}) =>{
    return request({
        url:'/pro/searchPro',
        method:'POST',
        data
    })
}